﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
	Register
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
	<div class="pagetitle">
		<h1>
			Approve new user
		</h1>
	</div>
	<div class="pagecontent">
		<p>
			Please approve or reject this new user registration below.
		</p>
		<div>
			<fieldset>
				<legend>User information</legend>
				<p>
					<label for="username">
						Username:</label>
					<%= Html.TextBox("username") %>
				</p>
				<p>
					<label for="email">
						Email:</label>
					<%= Html.TextBox("email") %>
				</p>
			</fieldset>
		</div>
		
	</div>
	<div class="pageactions">
	<p>
			<% using (Html.BeginForm("Approve", "Account", new { ID = ViewData["ID"] }, FormMethod.Post))
	  { %>
			<input type="submit" value="I approve this user" />
			<% } %>
			<% using (Html.BeginForm("Reject", "Account", new { ID = ViewData["ID"] }, FormMethod.Post))
	  { %>
			<input type="submit" value="I do not approve this user" />
			<% } %>
		</p>
	</div>
</asp:Content>
